Skip to content

Fix inconsistent servers order in the UI#440

Merged
peterj merged 7 commits into
kagent-dev:mainfrom
abhinav-1305:fix/ui-tool-servers-order
May 28, 2025
Merged

Fix inconsistent servers order in the UI#440
peterj merged 7 commits into
kagent-dev:mainfrom
abhinav-1305:fix/ui-tool-servers-order

Conversation

@abhinav-1305
Copy link
Copy Markdown
Contributor

Fixed non-deterministic tool server ordering by implementing sort() with localeCompare() in frontend and sort(key=lambda x: x.name or '') in backend API.

Fixes: #435, cc: @peterj.

Comment thread ui/src/app/servers/page.tsx Outdated
Copy link
Copy Markdown
Collaborator

@peterj peterj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added one question

@abhinav-1305 abhinav-1305 requested a review from peterj May 27, 2025 15:46
Comment thread python/src/autogenstudio/web/routes/tool_servers.py Outdated
Copy link
Copy Markdown
Collaborator

@peterj peterj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure you test the code.

@peterj peterj merged commit 78e3521 into kagent-dev:main May 28, 2025
10 checks passed
@abhinav-1305 abhinav-1305 deleted the fix/ui-tool-servers-order branch May 29, 2025 05:12
Raghavendiran-2002 pushed a commit to Raghavendiran-2002/kagent that referenced this pull request Apr 30, 2026
…rs-order

Fix inconsistent servers order in the UI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: tool servers order in the UI is not consistent

3 participants